const express = require('express')
const router = express.Router()
const UserController = require('../../controller/user')

router.post('/login', UserController.login);
router.post('/register', UserController.register)
router.post('/uploadUserPhoto', UserController.uploadUserPhoto)
router.post('/checkNickName', UserController.checkNickName)
router.post('/checkUserPhone', UserController.checkUserPhone)
router.post('/editUser', UserController.editUser)
router.get('/findById/:id', UserController.findById)
router.get('/deleteById/:id', UserController.deleteById)
router.get('/getListByPage', UserController.getListByPage)


module.exports = router